﻿#ifndef MYBUTTON_H
#define MYBUTTON_H

#include<QPushButton>
#include<QDebug>
#include<QPainter>
class myButton : public QPushButton
{
    Q_OBJECT
public:
    myButton(QWidget *parent=Q_NULLPTR);
    void paintEvent(QPaintEvent *event) override;
private slots://把函数和槽绑定
    void dianji();
    void on_myButton_ceshi(QString qs);
signals:
    void ceshi(QString qs); //定义信号
};

#endif // MYBUTTON_H
